package com.tanguy.user.ui.map.adapter

import android.view.View
import com.tanguy.user.R
import com.tanguy.user.base.JustAdapter
import com.tanguy.user.bean.PlaceShowBean
import com.tanguy.user.utlis.extend.setText

/**
 * Created by dab on 2017/11/15 0015 20:23
 */
class PlaceShowAdapter(data: ArrayList<PlaceShowBean>) : JustAdapter<PlaceShowBean>(data, R.layout.item_place_show) {
    override fun bind(itemView: View, data: PlaceShowBean, position: Int) {
        itemView.apply {
            setText(R.id.tv_title, data.name)
            setText(R.id.tv_address, data.address)
        }
    }



}